package com.zhongxia.feign;

import com.zhongxia.entity.Order;
import com.zhongxia.entity.OrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 废柴弟弟
 * @Date: 2020/4/9 18:48
 */
@FeignClient(value = "order")
public interface OrderFeign {
    @PostMapping("/order/save")
    public void save( Order order);
    @GetMapping("/order/findAllByUid/{index}/{limit}/{uid}")
    public OrderVO findAllByUid(@PathVariable("index") int index, @PathVariable("limit") int limit, @PathVariable("uid") int uid);

    @GetMapping("/order/findAll/{page}/{limit}")
    public OrderVO findAll(@PathVariable("page") int page, @PathVariable("limit") int limit);

    @PutMapping("/order/update/{id}")
    public void update(@PathVariable("id") int id);
}
